package com.xgc.erp.order.sell.service;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Record;
import com.xgc.common.base.service.BaseService;
import com.xgc.common.model.IncomeDetail;

import java.util.List;

public class IncomeDetailService extends BaseService {
    private IncomeDetail dao = new IncomeDetail().dao();

    @Override
    public Model<?> getDao() {
        return this.dao;
    }

    public List<Record> getList(String orderId){
        String sql = Db.getSql("erp.getIncomeDetailList");
        return Db.find(sql,orderId);
    }

}
